<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
include "connection.php";

$product_id = $_REQUEST['product_id'];

$product_name = $_REQUEST['product_name'];
$product_price = $_REQUEST['product_price'];
$product_week = $_REQUEST['product_week'];
$product_at = $_REQUEST['product_at'];
$product_status = $_REQUEST['status'];
$product_month = $_REQUEST['product_month'];


$tableProduct = "product";

$sql = "update $tableProduct set
product_name='$product_name',
price='$product_price',
week='$product_week',
month='$product_month',
status='$product_status',
at='$product_at'
where product_id='$product_id'";
$query = mysql_query($sql) or die ("修改失败，请返回！");


?>
<script type="text/javascript">
    alert("菜式已修改，请点击返回列表！");
    document.location = "../admin_productset.php";
</script>
</body>
</html>